package fr.insalyon.sims.broadcast.network;


/**
 * This class provides the access to error source and exception for DataErrorListener.  
 * 
 * @author GONZALEZ Silvia, GOTTERO Jeremie, SATTAYAKAWEE Nutchanat
 *
 */
public class DataErrorEvent {
	// ------------------------------------------------------- CONSTANTS -- //
	// ------------------------------------------------------ ATTRIBUTES -- //
	
	/**
	 * source of error
	 */
	private IStream source;
	/**
	 * exception
	 */
	private Exception exception;
	
	// ---------------------------------------------------- CONSTRUCTORS -- //
	
	public DataErrorEvent(IStream source, Exception exception) {
		this.source = source;
		this.exception = exception;
	}

	// --------------------------------------------------------- METHODS -- //

	/**
	 * Gets error source
	 */
	public IStream getSource() {
		return source;
	}

	/**
	 * Gets exception
	 * @return exception
	 */
	public Exception getException() {
		return exception;
	}
	
	// ------------------------------------------------- PRIVATE METHODS -- //
	// --------------------------------------------------- INNER CLASSES -- //
}
